#include"Thread.hpp"
using namespace std;

void Print()
{
    cout<<"我是一个封装的线程"<<endl;
}


int main()
{
    vector<Thread> threads;
    for(int i=0;i<5;i++)
    {
        threads.push_back(Thread(Print));
    }
    
    for(auto& t:threads)
    {
        t.Run();
    }

    for(auto& t:threads)
    {
        t.Join();
    }
    
    return 0;
    
}